package ro.ubbcluj.cs.validation.framework.core;


public class ValidationError {

	public static final ValidationError NO_ERRORS = new ValidationError(null, null);
	
	private ValidationErrorType type;
	private String[] messageArgs;

	public ValidationError(ValidationErrorType type, String[] messageArgs) {
		super();
		this.type = type;
		this.messageArgs = messageArgs;
	}

	public final ValidationErrorType getType() {
		return type;
	}

	public final void setType(ValidationErrorType type) {
		this.type = type;
	}

	public final String[] getMessageArgs() {
		return messageArgs;
	}

	public final void setMessageArgs(String[] messageArgs) {
		this.messageArgs = messageArgs;
	}
}
